#ifndef _MEM_H
#define _MEM_H

#include "reg.h"
#include <iostream>
#include <map>

using namespace std;

typedef pair<int, int> addr_t;

extern int hashCount;

class Mem{
	static map<addr_t, Reg> mem;
public:
	static void init();
	static void readMem(int regId, int offset, Reg &reg);
	static void writeMem(int regId, int offset, Reg &reg);
};

#endif